package com.atguigu.ioc.bean;

/**
 * Date:2020/9/23
 * Author:ybc
 * Description:
 */
public class Student {

    private Integer sid;

    private String sname;

    private Integer age;

    private String sex;

    private Double score;

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", score=" + score +
                '}';
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Student() {
        System.out.println("Student构造器");
    }

    public Student(String sname) {
        this.sname = sname;
    }

    public Student(Integer sid, String sname, Double score, String sex) {
        this.sid = sid;
        this.sname = sname;
        this.score = score;
        this.sex = sex;
    }

    public Student(Integer sid, String sname, Integer age, String sex) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.sex = sex;
    }

    public Student(Integer sid, String sname, Integer age) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
    }
}
